package co.yixiang.modules.shop.service.impl;

import co.yixiang.common.service.impl.BaseServiceImpl;
import co.yixiang.modules.shop.entity.DictDetail;
import co.yixiang.modules.shop.mapper.DictDetailMapper;
import co.yixiang.modules.shop.service.DictDetailService;
import co.yixiang.modules.user.mapper.YxUserMapper;
import co.yixiang.modules.user.web.vo.YxUserQueryVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author frq
 * @date 2020-03-06
 */
@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public class DictDetailServiceImpl extends BaseServiceImpl<DictDetailMapper, DictDetail> implements DictDetailService {
    @Autowired
    private DictDetailMapper dictDetailMapper;


    /**
     * 根据字典名称查询
     * @param name
     * @return
     */
    @Override
    public List<DictDetail> findDictName(String name) {
        return dictDetailMapper.findDictName(name);
    }
}